package com.sykuku.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class OrderPageConditionDto {
    // page=1&pageSize=10&number=123&beginTime=2022-05-04%2000%3A00%3A00&endTime=2022-06-08%2023%3A59%3A59
    private Integer page;
    private Integer pageSize;
    private Long number;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
